/*
 Navicat Premium Data Transfer

 Source Server         : demo
 Source Server Type    : MySQL
 Source Server Version : 80031
 Source Host           : localhost:3306
 Source Schema         : 2101A-week3

 Target Server Type    : MySQL
 Target Server Version : 80031
 File Encoding         : 65001

 Date: 10/05/2023 10:46:24
*/

SET NAMES utf8mb4;
SET FOREIGN_KEY_CHECKS = 0;

-- ----------------------------
-- Table structure for apply_info
-- ----------------------------
DROP TABLE IF EXISTS `apply_info`;
CREATE TABLE `apply_info` (
  `id` int NOT NULL AUTO_INCREMENT,
  `apply_type_id` int DEFAULT NULL,
  `name` varchar(255) DEFAULT NULL,
  `amount` varchar(255) DEFAULT NULL,
  `status` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci DEFAULT '1' COMMENT '默认未报销 1',
  `apply_date` datetime DEFAULT NULL,
  `remark` varchar(255) DEFAULT NULL,
  `del` int DEFAULT '0' COMMENT '0未删除, 1已删除',
  `url` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `idx_type_status` (`apply_type_id`,`status`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=utf8mb3;

-- ----------------------------
-- Records of apply_info
-- ----------------------------
BEGIN;
INSERT INTO `apply_info` (`id`, `apply_type_id`, `name`, `amount`, `status`, `apply_date`, `remark`, `del`, `url`) VALUES (1, 1, '坤', '250', '2', '2023-04-07 10:00:08', '3455534', 0, 'https://foruda.gitee.com/avatar/1683537254300569894/12065236_hccxx_1683537254.png');
INSERT INTO `apply_info` (`id`, `apply_type_id`, `name`, `amount`, `status`, `apply_date`, `remark`, `del`, `url`) VALUES (2, 2, '吴亦凡', '250', '2', '2023-04-07 10:00:38', NULL, 0, 'https://foruda.gitee.com/avatar/1683537254300569894/12065236_hccxx_1683537254.png');
INSERT INTO `apply_info` (`id`, `apply_type_id`, `name`, `amount`, `status`, `apply_date`, `remark`, `del`, `url`) VALUES (3, 3, '马斯克', '200.02', '2', '2023-04-07 00:00:00', 'xfgdgrtdrg', 0, 'https://foruda.gitee.com/avatar/1683537254300569894/12065236_hccxx_1683537254.png');
INSERT INTO `apply_info` (`id`, `apply_type_id`, `name`, `amount`, `status`, `apply_date`, `remark`, `del`, `url`) VALUES (4, 1, '马云', '200.02', '1', '2023-04-05 00:00:00', 'xfgdgrtdrg', 1, 'https://foruda.gitee.com/avatar/1683537254300569894/12065236_hccxx_1683537254.png');
INSERT INTO `apply_info` (`id`, `apply_type_id`, `name`, `amount`, `status`, `apply_date`, `remark`, `del`, `url`) VALUES (5, 1, '张三', '200.02', '1', '2023-04-07 00:00:00', 'xfgdgrtdrg', 0, 'https://foruda.gitee.com/avatar/1683537254300569894/12065236_hccxx_1683537254.png');
INSERT INTO `apply_info` (`id`, `apply_type_id`, `name`, `amount`, `status`, `apply_date`, `remark`, `del`, `url`) VALUES (6, 1, '张三', '200.02', '1', '2023-05-10 00:00:00', 'xfgdgrtdrg', 0, 'https://foruda.gitee.com/avatar/1683537254300569894/12065236_hccxx_1683537254.png');
COMMIT;

-- ----------------------------
-- Table structure for apply_type
-- ----------------------------
DROP TABLE IF EXISTS `apply_type`;
CREATE TABLE `apply_type` (
  `id` int NOT NULL AUTO_INCREMENT,
  `name` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8mb3;

-- ----------------------------
-- Records of apply_type
-- ----------------------------
BEGIN;
INSERT INTO `apply_type` (`id`, `name`) VALUES (1, '招待费');
INSERT INTO `apply_type` (`id`, `name`) VALUES (2, '交通费');
INSERT INTO `apply_type` (`id`, `name`) VALUES (3, '餐饮费');
COMMIT;

SET FOREIGN_KEY_CHECKS = 1;
